package com.cjkj.equipment.mapper;

import com.cjkj.equipment.domain.dto.EquipmentCountReq;
import com.cjkj.equipment.domain.vo.EquipmentCountVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface EquipmentCountMapper {

    /**
     * 设备统计
     * @param params
     * @return
     */
    List<EquipmentCountVo> selectCountList(EquipmentCountReq params);

    /**
     * 根据医院统计
     * @param params
     * @return
     */
    List<EquipmentCountVo> selectCountByHospital(EquipmentCountReq params);

    int selectMattressUse(@Param("hospitalId") String hospitalId, @Param("deptId") String deptId, @Param("doctorId") String doctorId,
                          @Param("date") Date date);

    int selectBraceletUse(@Param("hospitalId") String hospitalId, @Param("deptId") String deptId, @Param("doctorId") String doctorId,
                          @Param("date") Date date);
}
